package ar.com.e2solver.solver.operator;

import ar.com.e2solver.solver.operator.impl.RegionExchangeCrossoverOperator;
import ar.com.e2solver.solver.operator.impl.ShortestPathCrossOverOperator;
import ar.com.e2solver.solver.operator.impl.SimpleCrossOverOperator;


public class CrossoverOperatorFactory {

	public static CrossoverOperator getOperator(int operationNumber) {
		CrossoverOperator operator = null;
		
		switch (operationNumber) {
		case 0:
			operator = ShortestPathCrossOverOperator.getInstance();
			break;
		case 1:
			operator = SimpleCrossOverOperator.getInstance();
			break;
		default:
			operator = RegionExchangeCrossoverOperator.getInstance();
			break;
		}
		
		return operator;
	}

}
